import ejs from "ejs";
import fs from "fs";
import { getThisProjectFilePath } from "../../utils/index.js";

export default (config) => {
  const file = fs.readFileSync(
    getThisProjectFilePath("src/template/react.package.json/tpl.ejs")
  );
  return ejs.render(file.toString(), config);
};
